Skip to main content

Running tests

info

Before you start.

  • Permissions: Run Test; View Run to see results; Cancel Run to cancel (Permissions).
  • The collection must be published. A draft cannot be run as a collection, and a single case runs from a published version that contains it. Publish first: see the Cases tab.
  • An environment must exist, and every secret the cases use must exist (otherwise the case ends with SECRET_MISSING).
  • New to API Test? Follow the Quick start first.

Running a collection​

Run Collection: Version, Environment, Cases to run ("All enabled cases (18 of 19) · Saved order"), Repeat (1–20), Stop, Start run / Close, "What this run produces", "Execution plan for each pass".

Run Collection: Version, Environment, Cases to run ("All enabled cases (18 of 19) · Saved order"), Repeat (1–20), Stop, Start run / Close, "What this run produces", "Execution plan for each pass".

Panel title: "Run Collection · name".

ElementSource / optionsFunction & result
Version (blank = latest published)List of Published versionsThe collection version to run. Blank = latest published version.
Environment (· REST / SOAP)"Collection default" or a non-MQ environmentRun target. Resolved once before pass 1 and used by all passes.
Environment · MQOnly shown when there are MQ casesMQ environment for the run.
Overrides (optional) → Variable / ValueEnv vars and run vars without a writer; placeholder shows the current valueReplaces values for this run only. Secrets cannot be overridden.
Cases to runAutomatic (text)Example: "All enabled cases (n of m) · Saved order": all enabled cases in saved order. A normal run has no case picker; to re-run failures, start from History.
Repeat (1–20)NumberRuns the whole collection several times (each pass with a fresh context).
StopNever / On first failed passStops repeating after the first failed pass.
"What this run produces / Execution plan" panelAutomaticExplains the order: 1 Setup (once, fresh store) → 2 Cases (in order, per dataset & repeat) → 3 Teardown (after the selected cases).
Start runNeeds the run permissionStarts the run (the button is called Start run, not "Run"). The result appears in History ("Run #n: status · outcome").
Close—Goes back to the tab before Run.

Running a single case​

Run this case on its own: Published version ("v7 · latest eligible"), Environment, Properties this case reads, WHAT WILL EXECUTE, single-case run note, Run this case button at the bottom.

Run this case on its own: Published version ("v7 · latest eligible"), Environment, Properties this case reads, WHAT WILL EXECUTE, single-case run note, Run this case button at the bottom.

Panel title: "Run this case on its own". The Run case button in the editor header opens this tab.

ElementSource / optionsFunction & result
Published version (required)Published versions containing the case in an enabled state; the newest is marked "· latest eligible"The version that runs. None → "Publish the case before running it".
Environment (required)"Collection default" or an environment matching the case protocolRun target.
Optional run overrides → Variable / Value / + Add overrideEnv vars & run vars without a writerReplaces values for this run only.
"unsaved draft edits" warningAutomaticThe run uses the last published version, not your draft edits.
Properties this case reads / What will executeAutomaticCollection setup → case (setup → request, extract, checks → teardown) → collection teardown. Earlier cases do not run; a property still unresolved after setup makes the case Blocked (teardown still runs).
Run this case (button at the panel bottom)—Runs it (the button is called "Run this case"; the editor header also has "Run case", which opens this tab). The result is stored in History as a single-case run (SINGLE_CASE) and does not change the collection's pass rate.

Cancelling and rerunning​

SituationWhat happens
Where to cancelCancel run is on the run results page while the run is Queued or Running. Download report stays disabled until the run has finished. Needs the Cancel Run permission.
A case is already executingThat case finishes and keeps its real result and duration. The run then ends CANCELLED.
Cases that have not startedThey are not run. They show as Skipped with the reason RUN_CANCELLED and 0 ms.
Counts and pass rateSkipped cases are left out. For example 2 passed, 1 failed, 0 blocked and 1 skipped gives "Pass rate: 66.7% (2 of 3 attempted)".
A queued runFor example one pass of a Repeat run that has not started. It is cancelled at once, shows no case results, and the other passes are not affected.
TeardownTeardown still runs after a cancel. The results page lists it under "Teardown steps (always run)".
Cancelling too lateIf the run has already finished, the request is refused (HTTP 409). The page shows the finished run as normal and no message appears. Short runs can finish before you click Cancel run.
After a cancelled runRerun failed only is offered. It re-runs the failed cases as a new run with the trigger "Rerun failed" (see Results, history and reports).